<template>
  <footer>
    <div class="myfooter-container">
      <br>
      <el-row>
        <el-col :span="6">
          <div class="footer-bar">
            <a href="#" class="head-brand" style="font-size: 17pt">网站名称</a>
          </div>
        </el-col>
        <el-col :span="12">
          <ul class="main-nav">
            <li v-for="(m,index) in friendsLinks" :key="index"><a href="#"><i :class="m.icon"></i>{{ m.name }}</a>
              <ul class="drop">
                <li v-for="(sub,index2) in m.subMenus" :key="index2"><a :href="sub.link"
                                                                        target="_blank">{{ sub.name }}</a></li>
              </ul>
            </li>
          </ul>
        </el-col>
        <el-col :span="6">
          <div style="cursor: pointer">
            <img class="me" src="@/assets/images/index/me.png" alt="">
          </div>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="24">
          <el-divider content-position="center">京东云</el-divider>
        </el-col>
        <el-col :span="24">
          <div class="footer-copyright">
            <p class="text-center" style="color:#999;">Copyright <span>&copy;</span> 2017-2023 华清远见西安中心
              .&nbsp;&nbsp;作者：西蒙牛 &nbsp;&nbsp;
              <a href="http://beian.miit.gov.cn/">陕ICP备17021xxx号-1</a>&nbsp;&nbsp; <a
                  href="#">[后台管理]</a></p>
          </div>
        </el-col>
      </el-row>
    </div>
  </footer>
</template>

<script>
export default {
  name: "MyFooter",
  data() {
    return {
      "friendsLinks": [
        {
          "version": null,
          "createTime": null,
          "modifyTime": null,
          "flag": true,
          "id": 11,
          "name": "常用网站",
          "url": null,
          "hasChild": 1,
          "icon": "el-icon-link",
          "subMenus": [
            {
              "version": 0,
              "createTime": null,
              "modifyTime": null,
              "flag": true,
              "id": 12,
              "webSiteId": 1,
              "name": "Java极客",
              "link": "https://www.javajike.com/",
              "position": "footer",
              "icon": null,
              "hasChild": 0,
              "pid": 11
            },
            {
              "version": 0,
              "createTime": null,
              "modifyTime": null,
              "flag": true,
              "id": 13,
              "webSiteId": 1,
              "name": "CSDN",
              "link": "https://www.csdn.net/",
              "position": "footer",
              "icon": null,
              "hasChild": 0,
              "pid": 11
            },
            {
              "version": 0,
              "createTime": null,
              "modifyTime": null,
              "flag": true,
              "id": 14,
              "webSiteId": 1,
              "name": "w3cschool",
              "link": "https://www.w3cschool.cn/",
              "position": "footer",
              "icon": null,
              "hasChild": 0,
              "pid": 11
            },
            {
              "version": 0,
              "createTime": null,
              "modifyTime": null,
              "flag": true,
              "id": 15,
              "webSiteId": 1,
              "name": "菜鸟教程",
              "link": "https://www.runoob.com/",
              "position": "footer",
              "icon": null,
              "hasChild": 0,
              "pid": 11
            },
            {
              "version": 0,
              "createTime": null,
              "modifyTime": null,
              "flag": true,
              "id": 16,
              "webSiteId": 1,
              "name": "廖雪峰",
              "link": "https://www.liaoxuefeng.com/",
              "position": "footer",
              "icon": null,
              "hasChild": 0,
              "pid": 11
            },
            {
              "version": 0,
              "createTime": null,
              "modifyTime": null,
              "flag": true,
              "id": 17,
              "webSiteId": 1,
              "name": "阮一峰",
              "link": "http://www.ruanyifeng.com/blog/archives.html",
              "position": "footer",
              "icon": null,
              "hasChild": 0,
              "pid": 11
            },
            {
              "version": 0,
              "createTime": null,
              "modifyTime": null,
              "flag": true,
              "id": 18,
              "webSiteId": 1,
              "name": "方志鹏",
              "link": "https://www.fangzhipeng.com/",
              "position": "footer",
              "icon": null,
              "hasChild": 0,
              "pid": 11
            }
          ]
        },
        {
          "version": null,
          "createTime": null,
          "modifyTime": null,
          "flag": true,
          "id": 19,
          "name": "友情链接",
          "url": null,
          "hasChild": 1,
          "icon": "el-icon-paperclip",
          "subMenus": [
            {
              "version": 0,
              "createTime": null,
              "modifyTime": null,
              "flag": true,
              "id": 20,
              "webSiteId": 1,
              "name": "阿里云",
              "link": "https://www.aliyun.com/",
              "position": "footer",
              "icon": null,
              "hasChild": 0,
              "pid": 19
            },
            {
              "version": 0,
              "createTime": null,
              "modifyTime": null,
              "flag": true,
              "id": 21,
              "webSiteId": 1,
              "name": "京东云",
              "link": "https://www.jdcloud.com/",
              "position": "footer",
              "icon": null,
              "hasChild": 0,
              "pid": 19
            },
            {
              "version": 0,
              "createTime": null,
              "modifyTime": null,
              "flag": true,
              "id": 22,
              "webSiteId": 1,
              "name": "七牛云",
              "link": "https://www.qiniu.com/",
              "position": "footer",
              "icon": null,
              "hasChild": 0,
              "pid": 19
            },
            {
              "version": 0,
              "createTime": null,
              "modifyTime": null,
              "flag": true,
              "id": 23,
              "webSiteId": 1,
              "name": "Vue.js",
              "link": "https://cn.vuejs.org/",
              "position": "footer",
              "icon": null,
              "hasChild": 0,
              "pid": 19
            },
            {
              "version": 0,
              "createTime": null,
              "modifyTime": null,
              "flag": true,
              "id": 24,
              "webSiteId": 1,
              "name": "Dcloud",
              "link": "https://www.dcloud.io/",
              "position": "footer",
              "icon": null,
              "hasChild": 0,
              "pid": 19
            },
            {
              "version": 0,
              "createTime": null,
              "modifyTime": null,
              "flag": true,
              "id": 25,
              "webSiteId": 1,
              "name": "中国开源",
              "link": "https://www.oschina.net/",
              "position": "footer",
              "icon": null,
              "hasChild": 0,
              "pid": 19
            },
            {
              "version": 0,
              "createTime": null,
              "modifyTime": null,
              "flag": true,
              "id": 29,
              "webSiteId": 1,
              "name": "百度网盘",
              "link": "https://pan.baidu.com/",
              "position": "footer",
              "icon": null,
              "hasChild": 0,
              "pid": 19
            }
          ]
        },
        {
          "version": null,
          "createTime": null,
          "modifyTime": null,
          "flag": true,
          "id": 26,
          "name": "其它",
          "url": null,
          "hasChild": 1,
          "icon": "el-icon-message",
          "subMenus": [
            {
              "version": 0,
              "createTime": null,
              "modifyTime": null,
              "flag": true,
              "id": 27,
              "webSiteId": 1,
              "name": "关于我",
              "link": "/pAboutme",
              "position": "footer",
              "icon": null,
              "hasChild": 0,
              "pid": 26
            },
            {
              "version": 0,
              "createTime": "",
              "modifyTime": null,
              "flag": true,
              "id": 28,
              "webSiteId": 1,
              "name": "商务合作",
              "link": "/pCooperation",
              "position": "footer",
              "icon": null,
              "hasChild": 0,
              "pid": 26
            }
          ]
        }
      ]
    }
  }
}
</script>

<style scoped>

.myfooter-container {
  width: 80%;
  height: auto;
  margin: 0px auto;
}

.footer-bar {
  text-align: center;
  line-height: 240px;
}

.footer-bar a {
  text-decoration: none;
  color: #336699;
  font-weight: bold;
}

.footer-copyright {
  text-align: center;
}

.main-nav {
  display: flex;
}


.main-nav > li {
  list-style: none;
  width: 33%;
  margin-right: 30px;

}

.main-nav  li{
  list-style: none;
  text-align: left;
}

.main-nav > li a {

  text-decoration: none;
  color: #666;

}

.main-nav li a:hover {
  text-decoration: none;
  color: #336699;
}

.drop {
  margin-top: 20px;
  text-align: start;
  position: relative;
  left: -40px;
}

.drop li {
  width: 100%;
  text-decoration: none;
  color: #336699;
  font-size: small;
  padding: 5px;

}

.footer-copyright p {
  color: #ccc;
  font-size: small;
}

.footer-copyright a {
  color: #ccc;
  text-decoration: none;
}
</style>
